import React from 'react';
import {Router, Route} from 'react-router-dom';
import createHistory from 'history/createHashHistory';
import RootView from "../component/view/view";
import './router.scss';
const history = createHistory();

// const RootView = AsyncComponent(() => import(/* webpackChunkName: "RootView" */ "../component/view/view"))


const myRouters = () => {
    return(
      <Router history={history}>
        <Route exact path="/" component={RootView} />
        {/* <Route path="/login" component={Login} /> */}
      </Router>
    )
}

export default myRouters;
